<div id="content">
{% for lp in list_post %}
	<div class="post" id="{{lp.0.title}}">
	<div class="date"><span>{{lp.1.0}}</span> {{lp.1.1}}</div>
	<div class="title">
	<h2><a href="{{lp.0.get_absolute_url}}" rel="bookmark" title="{{lp.0.title}}">{{lp.0.title}}</a></h2>
	<div class="postdata">
	<SPAN class="category">
	<a href="{{lp.0.catalog.get_absolute_url}}" title="显示分类-{{lp.0.catalog}}-的所有文章" rel="category tag">{{lp.0.category}}</a>
	</SPAN> 
	<span class="right edit-blog">
	{% if user.is_authenticated and user.is_staff %}
	<a onclick="return showAddAnotherPopup(this);" href="/edit_blog/{{lp.0.id}}">Edit</a>
	<a onclick="{if(confirm('确定删除博文吗?')){return showAddAnotherPopup(this);}return false;}" href="/del_blog/{{lp.0.id}}">Del</a>
	{% endif %}
	</span>
	<span class="comments">
	<a href="{{lp.0.get_absolute_url}}#comments" title="{{lp.0.title}}的评论">{{lp.2}} Comments &#187;</a>
	</span>
	</div>
	</div>
	<div class="entry">
	{% autoescape off %}
	{{lp.0.content}}
	{% endautoescape %}
	</div>
	</div>
{% endfor %}
{% if ispage %}
	<div class="page-nav"> 
	{% if nextpage %}
		<span class="previous-entries"><a href="/page/{{nnum}}">Next Entries</a></span>
	{% endif %}
	{% if prepage %}
		<span class="next-entries"><a href="/page/{{pnum}}">Previous Entries</a></span> 
	{% endif %}
	</div>
{% endif %}
</div>